home *** CD-ROM | disk | FTP | other *** search
-
-
- ‹
-
- ‹
-
- åHow Does Menu Grabber Work?
-
-
-
- xAbout Menu Events
-
-
- Á
-
- Á
-
- Á
-
-
- When the Menu Events extension is installed on a Macintosh, all
-
- high-level-event-aware applications running on that machine gain support
-
- for Menu events. Menu events are a class of Apple events which allow a
-
- sender to query an application’s menus and menu items, and to select its
-
- menu items. (See the help file for the Menu Events extension to learn
-
- more about the Apple event syntax for Menu events.)
-
-
-
-
- In order for Menu events to work across an AppleTalk network, the target
-
- machine and application must meet the following conditions:
-
- • program linking started in Sharing Setup control panel
-
- • program linking allowed to user or guest through Users & Groups
-
- control panel
-
- • remote program linking allowed through application’s Sharing dialog
-
- • Menu Events extension installed
-
-
-
- NOTE (technical, but important): Even with remote program linking
-
- allowed, most applications run in a mode where they will not permit user
-
- interaction in response to an event from another machine. Menu Events
-
- always requests user interaction to make the target application active, as
-
- it would normally be when it senses a menu selection. Menu Events is
-
- programmed to overcome this problem. If you want to allow remote Menu
-
- events (such as sent by Menu Grabber) to work on applications running in
-
- the default kAEInteractWithLocal interaction mode, leave Menu Events
-
- unlocked. Otherwise, lock it using the Get Info dialog, so that applications
-
- can decide for themselves whether to allow remote control. This choice
-
- does not affect the acceptance of Menu events by applications which are
-
- running in the kAEInteractWithSelf (always reject) or kAEInteractWithAll
-
- (always accept) interaction mode.
-
-
- After installing the Menu Events extension on the target machine, you
-
- must restart that machine to enable support for Menu events. An icon
-
- appears at startup to confirm that the extension has initialized
-
- successfully. The icon includes a little padlock if Menu Events has been
-
- locked against remote senders.
-
-
-
-
- xSelecting a Target Application
-
-
- Once you have installed the Menu Events extension on the target machine,
-
- you are ready to try Menu Grabber. You may decide to run Menu Grabber
-
- on the same machine, as a first test, but to be certain that Menu events
-
- will work for a certain target application across the network, you should
-
- also try grabbing its menus from another machine.
-
-
-
- To grab an application’s menus, press the Grab… button in the Menu
-
- Grabber dialog, then select the zone, machine, and application you want.
-
- If the machine’s name does not appear, check that it is connected to the
-
- network, and that program linking is started. If the application’s name
-
- does not appear, check that it is open, and that remote program linking is
-
- allowed in its Sharing dialog. If you have to turn on remote program
-
- linking, you must quit the application first. If the check box remains
-
- grayed out after quitting the application, and the application is neither
-
- locked nor on an unwritable volume, it is likely that the application is not
-
- high-level-event-aware — in other words, it doesn’t support program
-
- linking, and can’t be controlled by Menu Grabber.
-
-
- Unfortunately, some applications, such as any version of Finder which
-
- predates Power Macintosh (version 7.1.2), are programmed in such a
-
- way as to ignore high-level events which they do not understand, such as
-
- Menu events. If it seems to be taking a long time to grab the application’s
-
- menus, you can wait 30 seconds for the attempt to time out, or press
-
- Command-Period to cancel the attempt. A few other applications
-
- (Microsoft’s, especially) actively prevent system event handlers from
-
- working; you will recognize them by the error message, “The target
-
- application has prevented the usual handling of the Menu event. Menu
-
- events should not be used with this application.”
-
-
- If all goes well, the Menu Grabber dialog changes to show that it has
-
- grabbed the application’s menus, and the menu bar changes to match. If
-
- you are using a color display, the menu bar turns red, and all grabbed
-
- menus have white titles and white-on-black items, to make it obvious that
-
- these are not Menu Grabber’s own menus.
-
-
- To select another application, repeat the procedure. To revert to Menu
-
- Grabber’s own menus, press the Revert button, or press Escape or
-
- Command-Period.
-
-
-
-
- xUsing Grabbed Menus
-
-
- Having grabbed the menus of a target application, you can control that
-
- application by pulling down menus and selecting menu items from within
-
- Menu Grabber. If you have pressed any modifier keys (Shift, Control,
-
- Option, Command), and the target machine is running Menu Events version
-
- 1.1.2 or later, these modifiers are applied to the menu selection.
-
- Meanwhile, the target application and its menus continue to work as usual.
-
-
-
- Menu Grabber faithfully reproduces standard hierarchical (cascade)
-
- menus, Command-key shortcut equivalents, bullets and check marks, and
-
- styles such as underlining and italics. It does not reproduce icons
-
- attached to menu items. If it encounters a non-standard menu (one which
-
- uses a menu definition procedure other than the standard system 'MDEF'),
-
- it substitutes a menu containing a grayed-out item saying “non-standard
-
- menu,” because Menu Grabber does not have access to that function. If a
-
- menu is unavailable for any reason, you will see a similar “unavailable
-
- menu” indication. Keyboard, Help, and Application menus are never
-
- grabbed; selecting an item from these menus does not cause a Menu event
-
- to be sent to the target application.
-
-
- NOTE: The state of the modifier keys at the time you grab an
-
- application’s menus does not affect the appearance of the grabbed menus.
-
- The items are portrayed according to the application’s current menu
-
- structure, which may be constant, or may reflect the state of the
-
- modifier keys at the time of a previous menu selection, depending on how
-
- the application was programmed. Although you may not be able to see
-
- items in their “modified” state through Menu Grabber, you can still use
-
- the modifier keys to select a modified menu command, as long as the
-
- application does not shuffle or delete items when it detects the state of
-
- the modifier keys.
-
-
- Menu Grabber adds an extra disabled item to the bottom of each grabbed
-
- menu, to show the menu ID. This may help you if you are writing a
-
- program or script to send a Menu event to the application.
-
-
- The reproduction of the target application’s menu bar is static. If you
-
- need to bring it up to date, because menus may have been added or
-
- deleted, or items enabled or disabled, you must repeat the grabbing
-
- procedure. The simple way to do this is to press the Return or Enter key
-
- twice — once to bring up the program selection dialog, and once to accept
-
- the selection.
-
-
-
-